Please note that JavaScript is currently only available in Netscape Navigator 2.0 or higher.
Do not assume that all in your audience are using a JavaScript enabled browser.
Maybe it is time to collect your reward!
How to use:
Copy all JavaScript (located in the Head section of this file) to another file. You can also use this file as a stationery.
Use the following Body tag <BODY onLoad="startclock()">
to start the timer.
Use something like this inside the Body part of your page to display the timer.
<FORM NAME="timerForm" onSubmit="0">You have been at this page for <INPUT TYPE="text" NAME="timerField" SIZE=10 VALUE =""></FORM>
An example on how to use the value of the timer is the link that will execute the function GetReward(theLink)
:
Maybe it is time to collect your <A HREF="#" onClick="GetReward(this);" onMouseOver="window.status='Oh, I cannot wait any longer!'; return true"><B>reward!</B></A>
You can change the action of what will happen when the viewer clicks on the link by editing the function GetReward(theLink)
.